<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
    if(session.getAttribute("passport")!=null) 
        request.getRequestDispatcher("home.jsp").forward(request,response);
%>
<%@include file="header.jsp"%>
<div class="container">
    <form class="form-signin" action="loginAction.jsp" method="post" role="form">
        <h2 class="form-signin-heading">订制教材管理系统</h2>
        <input type="text" class="form-control" placeholder="账号" 
        value="<%=(request.getParameter("passport")==null)?"":request.getParameter("passport")%>" name="passport" required="true" autofocus="">
        <input type="password" class="form-control" placeholder="密码" name="password" required="">
        <label class="checkbox" style="visibility: hidden;">
            <input type="checkbox" value="remember-me"> 记住我
        </label>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>
    </form>
</div>
</body>
</html>